package com.myfoon.model.comparator;

import com.myfoon.model.cacheable.EventCache;

import java.util.Comparator;

public class EventCacheComparator implements Comparator {
    public EventCacheComparator() {
    }

    public int compare(Object o1, Object o2) {
        return -1* ( (EventCache)o1 ).getId().compareTo( ((EventCache)o2).getId() );        
    }
}
